encoding/json.field.index (field)
18 uses
encoding/json (current package)
decode.go#L709: for i, ind := range f.index {
decode.go#L729: if i < len(f.index)-1 {
encode.go#L725: for _, i := range f.index {
encode.go#L1077: index []int
encode.go#L1146: index := make([]int, len(f.index)+1)
encode.go#L1147: copy(index, f.index)
encode.go#L1148: index[len(f.index)] = i
encode.go#L1178: index: index,
encode.go#L1239: next = append(next, field{name: ft.Name(), index: index, typ: ft})
encode.go#L1252: if c := cmp.Compare(len(a.index), len(b.index)); c != 0 {
encode.go#L1261: return slices.Compare(a.index, b.index)
encode.go#L1294: return slices.Compare(i.index, j.index)
encode.go#L1299: f.encoder = typeEncoder(typeByIndex(t, f.index))
encode.go#L1323: if len(fields) > 1 && len(fields[0].index) == len(fields[1].index) && fields[0].tag == fields[1].tag {
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |